package com.cndw.kungfu.model.activity.holiday;

import java.util.Comparator;

public class MMFlowerPlayerComparator implements Comparator<MMFlowerPlayer> {

	@Override
	public int compare(MMFlowerPlayer o1, MMFlowerPlayer o2) {
		int diff = o2.getCount() - o1.getCount();
		if (diff == 0) {
			if (o2.getPid() > o1.getPid()) {
				diff = 1;
			}else {
				diff = -1;
			}
		}
		return diff;
	}

}
